
<%@page import="com.cn.dao.TiJianXiangmuDao"%>
<%@page import="com.cn.entity.Order_xiangmu"%>
<%@page import="com.cn.dao.OrderXiangmuDao"%>
<%@page import="com.cn.entity.User"%>
<%@page import="com.cn.dao.UserDao"%>
<%@page import="com.cn.entity.Orders"%>
<%@page import="com.cn.dao.OrdersDao"%>
<%@page import="com.cn.entity.TiJianxiangmu"%>
<%@page import="java.util.List"%>
<%@page import="com.cn.entity.Doctor"%>
<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>北京医院</title>
</head>

<body>
<h4>体检单详细信息</h4>

<% Object ob=session.getAttribute("price");
  String price=null;
   if(ob!=null){price=ob.toString(); }
%>

<% int orderid=1;
   int userid=1;
   Object o=session.getAttribute("orderid");
   if(o==null){
   String id=request.getParameter("orderid");
   orderid=Integer.parseInt(id);}
   
   else{
	   String id=session.getAttribute("orderid").toString();
	   orderid=Integer.parseInt(id);
   }
  
   OrdersDao od=new OrdersDao();
   Orders order=od.scanOne(orderid);
   userid=order.getUserid();
   UserDao ud=new UserDao();
   User user=ud.scanOne(userid);   
%>

<table>
<tr>
<td>体检单号</td>
<td>被体检人</td>
<td>收费</td>
</tr>


<tr>
<td><%=orderid %></td>
<td><%=user.getXingming()%></td>
<td><%=price %></td>
</tr>

</table>

<br>
<br>



<%OrderXiangmuDao oxd=new OrderXiangmuDao(); 

  List<Order_xiangmu> list=oxd.scanOrder(orderid);
  
  for (int i=0;i<list.size();i++){
	  
	  Order_xiangmu ox=list.get(i);
	 
	 %> 
	
	
<%	  
	  
	  int xiangmuid=ox.getXiangmuid();
	  
	  TiJianXiangmuDao td=new TiJianXiangmuDao();
	  
	  TiJianxiangmu xiangmu=td.scanOne(xiangmuid);%>

<form action="Order_xiangmuUpdateAction" method="post">
<table border="1px">
<tr>
<td>体检项目</td><td><%=xiangmu.getXiangmuming()%></td>  

</tr>
<tr>
<td>项目结果</td><td> <input type="text" name="result"></td>
</tr>

</table>
</form>

<br>
<% }%>
<br>
<table>
<tr>
<td>体检结果医生建议</td>
</tr>

<tr>
<td><input type="text" name="order.advise"></td>
</tr>
</table>

<br>

<br>
<a href="orderadd.jsp">返回</a>
</body>
</html>